<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home | 深大人的微型博客</title>
<link href="css/account.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="iecss.css" />
<![endif]-->
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/home.js"></script>
<script type="text/javascript" src="js/user_detail.js"></script>

<script type="text/javascript">	
$(function(){
var $div_li =$("ul.left_menu li");
$div_li.click(function(){
		$(this).addClass("selected")            //当前<li>元素高亮
		.siblings().removeClass("selected");  //去掉其它同辈<li>元素的高亮
	}).hover(function(){
		$(this).addClass("hover");
		},function(){
	$(this).removeClass("hover");
});

	/*保存按钮改变样式*/
	$("#save_button").mouseover(function(){
		$("#save_button").attr("src","button/save.png");
		});
	$("#save_button").mouseout(function(){
		$("#save_button").attr("src","button/save1.png");
		});
	/****************/
})
</script>
</head>
<body onload="startdate(),startTime()">

<?php
include_once 'msg_redirect.php';	/*通过使用cookie，当检查出未登陆，则不予进入home.php，返回index.php*/
if($_COOKIE['TTU'] != "logined"){
	msg_redirect("您还未登录哦！", "index.php");
}?>

<div id="main_container">

	<div id="header" >

       <div class="top_right">
       
            <div class="weather">
              <div class="weather_text" id="date"></div>
              <div class="weather_text" id="time"></div>
              <div class="weather_img">
              <a href="#"><img src="image/w_cloudy.png" border="0" width="60" height="60"/></a></div>
            </div>
            
            <div class="big_banner">
            <a href="#"><img src="image/life.jpg" border="0" width="180" height="100"/></a>
            <a href="#"><img src="image/love.jpg"  border="0" width="180" height="100"/></a>
            <a href="#"><img src="image/reading.jpg" border="0" width="180" height="100"/></a>
         </div>
        
        </div>
    
  
        <div id="logo">
            <a href="index.html"><img src="image/logo.png" alt="" title="" border="0" width="240" height="125" /></a>
	    </div>
        

        

    </div>
    
   <div id="main_content"> 
   
            <div id="menu_tab">
                    <ul id="menu">
                    	<li><a href="home.php">首 页</a></li>
                        <li><a href="#">热 门  <img src="image/more.png" /></a>
                         	<ul>
        						<li><a href="hotpeople.php">微博达人</a></li>
        						<li><a href="hotweibo.php">热门微博</a></li>
      						</ul>
                      </li>
                         <li><a href="#">应 用 <img src="image/more.png" /></a>
                         	<ul>
        						<li><a href="photo.php">相册</a></li>
        						<li><a href="collection.php">收藏</a></li>
                                <li><a href="find.php">找人</a></li>
        						<li><a href="#">我的课表</a></li>
        						<li><a href="#">公文通</a></li>
      						</ul>
                         </li>                                                   
                         <li><a href="my_weibo.php">我的主页</a></li>

                         <li><a href="#">消 息  <img src="image/more.png" /></a>
                         	<ul>
        						<li><a href="comment.php">查看评论</a></li>
        						<li><a href="cencerns_from.php">查看粉丝</a></li>
        						<li><a href="my_concerns.php">查看关注</a></li>
      						</ul>
                         </li>                     
                         <li><a href="#">帐 号  <img src="image/more.png" /></a>
                         	<ul>
        						<li><a href="account_info">帐号设置</a></li>
        						<li><a href="logout.php">注销</a></li>
      						</ul>
                         </li>
                         
                    </ul>

            </div><!-- end of menu tab -->
            
    
    <div class="left_content">
     <div class="title_box">帐号设置</div>
     	<ul class="left_menu">
     	<li class="selected"><a href="account_info">个人信息</a></li>
        <span class="border_m"></span>
        <li><a href="upload_head.php">修改头像</a></li>
        <span class="border_m"></span>
        <li><a href="account_password">修改密码</a></li>
        </ul>  
        
    
   </div><!-- end of left content --> 



   <div class="center_content">
	  <div class="center_title">基本信息</div>
      <span class="border_c"></span>
	  <div id="user_detail_form">
      <table width="600" border="0" cellspacing="0" cellpadding="10" class="table">
  <tr>
    <th>登录邮箱:</th>
    <td><?php include_once 'show_account_detail.php'; echo $u_email;?></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th>昵&nbsp;&nbsp;称:</th>
    <td><input type="text" class="a_input" name="nickname" id="nickname" value="<?php include_once 'show_account_detail.php';echo $u_name;?>">
</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th>真实姓名:</th>
    <td><input type="text" class="a_input" name="realname" id="realname" value="<?php include_once 'show_account_detail.php';echo $u_truename;?>"></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th>性&nbsp;&nbsp;别:</th>
    <td>
            <?php
            	include_once 'show_account_detail.php';
            	if ($u_sex == "男"){
            		echo "<input id='man' name='sex' type='radio' value='男' checked /><label for='man'>男</label>&nbsp;&nbsp;
            		<input id='woman' name='sex' type='radio' value='女' /><label for='woman'>女</label>";
            	}
            	elseif ($u_sex == "女"){
            		echo "<input id='man' name='sex' type='radio' value='男' /><label for='man'>男</label>&nbsp;&nbsp;
            		<input id='woman' name='sex' type='radio' value='女' checked /><label for='woman'>女</label>";
            	}
            	else echo  "<input  id='man' name='sex' type='radio' value='男' /><label for='man'>男</label>&nbsp;&nbsp;
            		<input id='woman' name='sex' type='radio' value='女' /><label for='woman'>女</label>";
            ?>
    
     </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th>生&nbsp;&nbsp;日:</th>
    <td>
            <select name="year">
            	<option value="<?php include_once 'show_account_detail.php';echo $u_year;?>">
            	<?php include_once 'show_account_detail.php';echo $u_year;?></option>
            	<?php 
            	$y = 2000;
            	while ($y > 1950){
            		echo "<option value=$y>$y</option>";
            		$y--;	
            	}?>
            </select>年
            <select name="month">
            	<option value="<?php include_once 'show_account_detail.php';echo $u_month;?>">
            	<?php include_once 'show_account_detail.php';echo $u_month;?></option>
                <?php
				$m = 1;
				while ($m <= 12){
					echo "<option value=$m>$m</option>";
					$m++;
				}
				?>
            </select>月
            <select name="day">
            	<option value="<?php include_once 'show_account_detail.php';echo $u_day;?>">
            	<?php include_once 'show_account_detail.php';echo $u_day;?></option>
                <?php
				$d = 1;
				while ($d <= 31){
					echo "<option value=$d>$d</option>";
					$d++;
				}
				?>
            </select>日
            </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th>学&nbsp;&nbsp;院:</th>
    <td><select name="dept" class="p_info_value">
              <option value=""></option>
              <?php 
              	include_once 'show_account_detail.php';
              	$all_array = array("计算机与软件学院","师范学院","文学院","外国语学院","传播学院","经济学院","管理学院","法学院",
              						"法学院","艺术设计学院","数学与计算科学学院","物理科学与技术学院","化学与化工学院","材料学院",
              						"信息工程学院","建筑与城市规划学院","土木工程学院","电子科学与技术学院","机电与控制工程学院",
              						"生命科学学院","光电工程学院","高尔夫学院","医学院","国际交流学院","成人教育学院");
              	foreach($all_array as $dept){
              		if($dept == $u_dept){
              			echo "<option value='$dept' selected>$dept</option>";
              		}
              		else echo "<option value='$dept'>$dept</option>";
              	}
              	?>  
          		</select></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th scope="row">QQ:</th>
    <td><input type="text" class="a_input" name="qq" id="QQ" value="<?php include_once 'show_account_detail.php';echo $u_qq;?>"></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th>简&nbsp;&nbsp;介:</th>
    <td><textarea class="a_textarea" name="mydesc" id="mydesc" ><?php include_once 'show_account_detail.php';echo $u_mydesc;?></textarea></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th>&nbsp;</th>
    <td><input type="image" id="save_button" src="button/save1.png"/></td>
    <td>&nbsp;</td>
  </tr>
</table>
</div>

   	
   </div><!-- end of center content -->



 
   </div><!-- end of main content -->
   
   
   
   <div class="footer">深圳大学计算机与软件学院@毕业设计项目网站<br />指导老师：王华明<br />项目负责：陈作鑫<br />
    小组成员：陈作鑫&nbsp;&nbsp;陈志杰&nbsp;&nbsp;赖晓东
  </div>                 


</div>
<!-- end of main_container -->
</body>
</html>